1.Always be in superuser to run this program. 

2. compile with "gcc gateway.c -w -lm -lpthread -l sqlite3"

3.Copy all GATEWAY source files from host to beaglebone black using : 
	scp ./gateway.c root@192.168.7.2:/home/root
	scp ./sqlite_func.h root@192.168.7.2:/home/root
	scp ./uart_cs5490.h root@192.168.7.2:/home/root	
	scp ./gpio_func.h  root@192.168.7.2:/home/root

4.To copy database files from beaglebone black to host machine,use :
	scp root@192.168.7.2:/home/root/METER1.db ./
	scp root@192.168.7.2:/home/root/METER2.db ./	
	 
